kexec_file: Disable at runtime if securelevel has been set
authorLee, Chun-Yi <joeyli.kernel@gmail.com>
Wed, 5 Apr 2017 16:40:30 +0000 (17:40 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 19 Jun 2017 23:25:45 +0000 (00:25 +0100)
commitf606644f3daf4db32372169e7c28eeacbe1cac11
tree9e0b393077d8c84d4fa803051febeea454364a13
parent55405709ab8b9246c4e468963cf43f5524726737
kexec_file: Disable at runtime if securelevel has been set

When KEXEC_VERIFY_SIG is not enabled, kernel should not loads image
through kexec_file systemcall if securelevel has been set.

This code was showed in Matthew's patch but not in git:
https://lkml.org/lkml/2015/3/13/778

Cc: Matthew Garrett <mjg59@srcf.ucam.org>
Signed-off-by: Lee, Chun-Yi <jlee@suse.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Gbp-Pq: Topic features/all/lockdown
Gbp-Pq: Name 0047-kexec_file-Disable-at-runtime-if-securelevel-has-bee.patch
kernel/kexec_file.c